﻿
namespace Mulala.Cavan.Core.Message
{
    using System;
    using System.Collections.Generic;
    using System.Diagnostics.Contracts;
    using System.Linq;

    /// <summary>
    ///     Message severity enumeration
    /// </summary>
    public enum MessageSeverity
    {
        /// <summary>
        ///     this Message type is useful for development, or Log tracing
        /// </summary>
        Debug,
        /// <summary>
        ///     info message
        /// </summary>
        Info,
        /// <summary>
        ///     warning message
        /// </summary>
        Warning,
        /// <summary>
        ///     Fundamental switch for application bahavior! 
        ///     Whenever exists at least 1 Message with severity ERROR:
        ///     NO changes are persisted! (In fact, transaction.Rollback is called)
        ///     This brings you new ability - count on adding Error-Messages, that's enough as well as on Business as on Controller layer
        /// </summary>
        Error
    }
}